import './index.css'
function titleBar(props: any) {
  const { Icon, title, callback } = props;
  return (
    <div className="titlebar">
      <span className="titleBarTitle">{title}</span>
      {
        Icon && <Icon className="icons" onClick={() => callback()} />
      }
    </div>
  );
}

export default titleBar;
